<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>添加活动专题</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('add')}" class="button button-small border-green">管理</a>
            <a href="JavaScript:void(0);" class="button button-small border-green">添加</a>
        </div>
        <div class="fixed-empty"></div>
        <form id="myform" name="myform" method="post" action="">
            <table class="table tb-type2">
                <tbody>
                    <tr>
                        <td width="10%" class="required"><label class="validation" for="title">专题名称:</label></td>
                        <td width="40%" class="vatop rowform"><input type="text" class="input input_big" value="" datatype="*" name="title" size="60" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="start_time">开始日期:</label></td>
                        <td class="vatop rowform"><input type="text" class="input input_small" style="float:left;" readonly="readonly" datatype="*" value="" id="start_time" name="start_time"><em class="add-on"><i class="icon-calendar"></i></em></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="voucher_end_date">结束效期:</label></td>
                        <td class="vatop rowform"><input type="text" class="input input_small" style="float:left;" readonly="readonly" datatype="*" value="" id="end_time" name="end_time"><em class="add-on"><i class="icon-calendar"></i></em></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="template">专题模板文件:</label></td>
                        <td class="vatop rowform"><input type="text" class="input input_big" name="template" id="template" size="60" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="css">专题样式表:</label></td>
                        <td class="vatop rowform"><textarea class="input input_big" name="css" id="css" cols="62" rows="3"></textarea></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="base_style">背景颜色:</label></td>
                        <td class="vatop rowform"><input type="text" class="input input_big" name="base_style" id="base_style" size="60" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="pc_img">专题Banner图（PC）:</label></td>
                        <td class="vatop rowform">
                            <!-- 图片上传按钮 -->
                            <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                            <input class="fileupload" type="file" name="image" data-name="pc_img" data-num="1">
                            </a>
                            <!-- 图片展示模块 -->
                            <div class="files">
                            </div>
                            <div style="clear:both;"></div>
                            <!-- 图片上传进度条模块 -->
                            <div class="up_progress"><div class="progress-bar"></div></div>
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="mb_img">专题Banner图（Mobile）:</label></td>
                        <td class="vatop rowform">
                            <!-- 图片上传按钮 -->
                            <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                            <input class="fileupload" type="file" name="image" data-name="mb_img" data-num="1">
                            </a>
                            <!-- 图片展示模块 -->
                            <div class="files">
                            </div>
                            <div style="clear:both;"></div>
                            <!-- 图片上传进度条模块 -->
                            <div class="up_progress"><div class="progress-bar"></div></div>
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="keywords">专题关键字:</label></td>
                        <td class="vatop rowform"><input type="text" class="input input_big" name="keywords" id="keywords" size="60" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="description">专题描述:</label></td>
                        <td class="vatop rowform"><textarea class="input input_big" name="description" id="description" cols="62" rows="3"></textarea></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="intro">专题简介:</label></td>
                        <td class="vatop rowform">
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.config.js"></script>
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.all.min.js"></script>
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
                            <textarea id="editor" type="text/plain" style="width:100%;height:200px;" name="intro" ></textarea>
                            <script>
                                var ue = UE.getEditor('editor');
                                UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                                UE.Editor.prototype.getActionUrl = function (action) {
                                    if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                                        return '{:ADMIN_URL}/Admin/ueditor';
                                    } else {
                                        return this._bkGetActionUrl.call(this, action);
                                    }
                                }
                            </script>
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="3"><input class="button bg-main" type="submit" value="提交"></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<!--F 上传图片-->
<script type="text/javascript" src="__JS__/jquery.uploads.js"></script>
<!--F 上传图片-->
<script type="text/javascript">
$('#myform').layer({});

$('#start_time').duxTime({
    minDate: 0,
    format: "Y-m-d H:i"
});
$('#end_time').duxTime({
    minDate: 0,
    format: "Y-m-d H:i"
});
</script>